#header {
    background-color: #007bff;
    color: white;
    text-align: center;
    padding: 5px;
}

body {
    font-family: Arial, sans-serif;
    min-height: 100vh;
    position: relative;
    margin: 0px;
}

/* 底部 div 样式 */
/* #footer {
    position: absolute;
    bottom: 10px;
    width: 100%;
    color: black;
    text-align: center;
} */


#chat-container {
    height: 400px;
    overflow-y: scroll;
    border: 1px solid #ccc;
    padding: 10px;
    display: flex;
    flex-direction: column;
}

.user-message {
    max-width: 100%;
    display: inline-block;
    word-wrap: break-word;
    padding: 10px;
    border-radius: 20px;
    background-color: #e5f3ff;
    margin-bottom: 10px;
}

.bot-message {
    max-width: 100%;
    display: inline-block;
    word-wrap: break-word;
    padding: 10px;
    border-radius: 20px;
    background-color: #dcf8c6;
    margin-bottom: 10px;
}

#input-container {
    margin-top: 10px;
    margin-left: 10px;
    margin-right: 10px;
}

input[type="text"] {
    box-shadow: 0 2px 4px rgb(240, 233, 233);
    border-radius: 5px;
    border: 1px solid #ccc;
    background: white;
    padding: 5px;
    color: #333;
    height: 35px;
    width: 100%;
    font-size: 18px;
}

#button-container {
    margin-top: 5px;
    margin-right: 10px;
    margin-left: 10px;
    direction: rtl;
}

button {
    transition: background-color 0.3s ease;
    background: #007bff;
    border: none;
    color: #fff;
    padding: 10px 20px;
    font-family: "Font Awesome";
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 15px;
    border-radius: 5px;
    width: 80px;
    height: 40px;
}

button:hover {
    background-color: #007bff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.audio-button {
    /* 在这里定义您的样式 */
    margin-left: 10px;
    transition: background-color 0.3s ease;
    background: #007bff;
    border: none;
    color: #fff;
    padding: 2px 4px;
    font-family: "Font Awesome";
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 15px;
    border-radius: 3px;
    width: 40px;
    height: 30px;
}

.spinner {
    width: 50px;
    height: 20px;
    margin-left: 5px;
    text-align: left;
    font-size: 10px;
}

.spinner>div {
    background-color: #67CF22;
    height: 100%;
    width: 4px;
    display: inline-block;
    margin: 2px;
    -webkit-animation: stretchdelay 1.2s infinite ease-in-out;
    animation: stretchdelay 1.2s infinite ease-in-out;
}

.spinner .rect1 {
    -webkit-animation-delay: -1.2s;
    animation-delay: -1.2s;
}

.spinner .rect2 {
    -webkit-animation-delay: -1.1s;
    animation-delay: -1.1s;
}

.spinner .rect3 {
    -webkit-animation-delay: -1.0s;
    animation-delay: -1.0s;
}

.spinner .rect4 {
    -webkit-animation-delay: -0.9s;
    animation-delay: -0.9s;
}

.spinner .rect5 {
    -webkit-animation-delay: -0.8s;
    animation-delay: -0.8s;
}

@-webkit-keyframes stretchdelay {

    0%,
    40%,
    100% {
        -webkit-transform: scaleY(0.4)
    }

    20% {
        -webkit-transform: scaleY(1.0)
    }
}

@keyframes stretchdelay {

    0%,
    40%,
    100% {
        transform: scaleY(0.4);
        -webkit-transform: scaleY(0.4);
    }

    20% {
        transform: scaleY(1.0);
        -webkit-transform: scaleY(1.0);
    }
}
